﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.ComponentModel;
namespace MRSite.Entity
{
    /// <summary>
    /// Banner
    /// </summary>
    [Table(Name = "banner")]
    public class Banner : Entity
    {
        /// <summary>
        ///
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }


        /// <summary>
        /// 类别  1:首页轮播图；2：楼下小店首页；3：个人店；4：企业店
        /// </summary>
        [Column(Name = "cid"), DefaultValue(0)]
        public int cid { get; set; }


        /// <summary>
        ///
        /// </summary>
        [Column(Name = "title")]
        public String title { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "link_url")]
        public String link_url { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "is_lock"), DefaultValue(0)]
        public int is_lock { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "sort_id"), DefaultValue(1)]
        public int sort_id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "add_time", IsDbGenerated = true)]
        public DateTime add_time { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "img_url")]
        public string img_url { get; set; }

        /// <summary>
        ///手机端链接地址
        /// </summary>
        [Column(Name = "link_url_mobile")]
        public string link_url_mobile { get; set; }

        /// <summary>
        ///手机端图片地址
        /// </summary>
        [Column(Name = "img_url_mobile")]
        public string img_url_mobile { get; set; }

    }
}
